<!DOCTYPE html>
<html lang="en" ng-app="myApp" ng-controller="myCtrl">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
    <meta name="x5-orientation" content="portrait">
    <meta name="screen-orientation" content="portrait">
    <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css">
    <link rel="stylesheet" href="css/public.css">
    <link rel="stylesheet" href="css/index.css">
    <title>首页</title>
</head>
<body>
    <div class="header">
        <div class="cap clearfix">
            <h1><a href=""><img src="images/index_header_logo.png" alt="logo" class="logo"></a></h1>
            <div class="download"><a href=""><img src="images/index_header_app.png" alt="app"></a></div>
        </div>
        <div class="searchBar form-group">
                <input type="text" placeholder="请输入你想比价的产品" class="search form-control" id="exampleInputEmail1">
            <input class="searchBtn" type="button" value="搜索">
        </div>
    </div>
    <div class="nav">
        <ul class="row" ng-repeat="menus in menuData" ng-show="$index<2||menuToggle">
            <li class="col-xs-3" ng-repeat="menu in menus">
                <a href="" ng-click="menuRoute(menu.indexmenuId,menu.titlehref)"><i ng-bind-html="menu.img| trustHtml"></i><span ng-bind="menu.name"></span></a>
            </li>
        </ul>
    </div>
    <div class="content">
        <div class="title clearfix"><h3>超值折扣推荐</h3><div><a href=""><img src="images/more.png" alt=""></a></div></div>
        <div class="goodsBox">
            <ul>
                <li class="good" ng-repeat="moneyCtrl in moneyCtrls">
                    <a class="subGood" ng-href="./pages/detaile.html?productId={{moneyCtrl.productId}}">
                        <p class="imgBox"><i ng-bind-html="moneyCtrl.productImg2| trustHtml"></i></p>
                        <div class="boxRight">
                            <p class="decsBox"><span ng-bind="moneyCtrl.productName"></span><span class="price" ng-bind="moneyCtrl.productPinkage"></span></p>
                            <p class="origin"><span class="orginName" ng-bind="moneyCtrl.productFrom+'|'"></span><i class="tiem" ng-bind="moneyCtrl.productTime"></i></p>
                        </div>
                    </a>
                </li>
            </ul>
            <div class="moreInfo">
                <button type="button" ng-click="routeToMoney()" class="btn btn-default btn-lg btn-block">更多信息</button>
            </div>
        </div>
    </div>
    <div class="rank">
        <div class="title clearfix"><h3>品牌排行</h3><div><a href=""><img src="images/more.png" alt=""></a></div></div>
    </div>
    <div class="footer">
        <div class="foot_top">
            <a href="">登录</a>
            <a href="">注册</a>
            <a href="javascript:pageScroll();" id='top'>
                <img src="./images/top.jpg" alt="">返回顶部</a>
        </div>
        <div class="foot_bottom">
            <p>
                <a href="">手机APP下载</a>
                <a href="">慢慢买手机版</a>
                -- 掌上比价平台
            </p>
            <p>m.manmanbuy.com</p>
        </div>
    </div>
    <script src="js/require.js"></script>
    <script src="lib/config.js"></script>
    <script>require(["index"])</script>
    <script>
        function pageScroll() {
            window.scrollBy(0,-10);
            scrolldelay=setTimeout('pageScroll()',-1);
            if(window.scrollY==0) {
                clearTimeout(scrolldelay);
            }
        }
    </script>
</body>
</html>